From 5361e93da794854ab01c0158e98db822cc31cfce Mon Sep 17 00:00:00 2001 From: "Ian.Campbell@xensource.com" Date: Wed, 1 Feb 2006 20:11:18 +0000 Subject: [PATCH] Unpack xen_features into an array of u8 'booleans' This allows us to avoid including bitops.h all over the tree as well as avoiding any potential endianness issues in the future. Use __read_mostly on the xen_features array now that the tree is based on a version of Linux which supports it. Also export xen_features for use in modules. Signed-off-by: Ian Campbell --- linux-2.6-xen-sparse/drivers/xen/core/features.c | 11 ++++++----- linux-2.6-xen-sparse/include/xen/features.h | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/core/features.c b/linux-2.6-xen-sparse/drivers/xen/core/features.c index 82cd9d66a5..4f21d2cbdd 100644 --- a/linux-2.6-xen-sparse/drivers/xen/core/features.c +++ b/linux-2.6-xen-sparse/drivers/xen/core/features.c @@ -7,22 +7,23 @@ */ #include #include +#include #include #include -/* When we rebase to a more recent Linux we can use __read_mostly here. */ -unsigned long xen_features[XENFEAT_NR_SUBMAPS] __cacheline_aligned; +u8 xen_features[XENFEAT_NR_SUBMAPS * 32] __read_mostly; +EXPORT_SYMBOL(xen_features); void setup_xen_features(void) { - uint32_t *flags = (uint32_t *)&xen_features[0]; xen_feature_info_t fi; - int i; + int i, j; for (i=0; i